﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Text;
using Caifu.Spiders;
using Caifu.Stats;

namespace Caifu.TestConsole
{
	class Program
	{
		static void Main(string[] args)
		{
			//NetDailyStat netDailyStat = new NetDailyStat();
			//netDailyStat.Stat();

			//var result = GetCsrc.CrawlNetValues(DateTime.Parse("2011-06-08"));

			SmtpClient smtpClient = new SmtpClient();
			smtpClient.Host = "smtp.exmail.qq.com";
			smtpClient.EnableSsl = false; ;
			smtpClient.Port = 25;
			smtpClient.Credentials = new NetworkCredential("noreply@e.caifu520.com", "caifu520.com");

			MailAddress from = new MailAddress("noreply@e.caifu520.com", "财富520");
			MailAddress to = new MailAddress("im_is@163.com", "iKun");
			MailMessage mailMessage = new MailMessage(from, to);
			mailMessage.Subject = "财富520欢迎您！";
			mailMessage.Body = "正文...";

			smtpClient.Send(mailMessage);

			//Console.Read();

			//try
			//{
			//    //Itfort.Net.SmtpMail mail = new Itfort.Net.SmtpMail(
			//    //    "smtp.exmail.qq.com", 465, "noreply@e.caifu520.com", "noreply@e.caifu520.com", "noreply@e.caifu520.com", "caifu520.com");
			//    //mail.Send("财富520欢迎您！", "正文...");

			//    Itfort.Net.SmtpMail mail = new Itfort.Net.SmtpMail(
			//        "smtp.qq.com", 25, "SERVICES@MAIL.CAIFU520.COM", "SERVICES@MAIL.CAIFU520.COM", "SERVICES@MAIL.CAIFU520.COM", "qiuqikun");
			//    mail.Send("财富520欢迎您！", "正文...");
			//}
			//    catch
			//{
 
			//}
		}
	}
}
